const webpack = require("webpack");
const path = require('path');

module.exports = {
    devServer: {
        proxy: {
			'/api': {
				target: 'http://119.29.83.54'
			},
            '/fackLock': {
				target: 'http://service.iwunulock.cn'
			}
		},
        // port: 9527,
        disableHostCheck: true
    },
    lintOnSave: false,
    publicPath: './',
	chainWebpack: config => {
		config.resolve.alias
            .set('@nodemodule', './node_modules/') // key,value自行定义，比如.set('@@', resolve('src/components'))
			.set('@assets', './src/assets/');
		config
            .entry('index')
            .add('babel-polyfill');
	},
	configureWebpack: {
		plugins: [
			new webpack.ProvidePlugin({
				// $: 'jquery',
				// jQuery: 'jquery',
				// 'window.jQuery': 'jquery',
				// Popper: ['popper.js', 'default']
			})
		]
	},
	transpileDependencies: []
}
